Add a test to check visibility of pending changesets. The pretxn race was closed in b8d750daadde; I checked that the test passes when run with that changeset and fails when run with its parent.