Correct dupdata= defaults.
Move out more common parts to testlib.
Beginnings of txn_test.