Add replication test
Improve test runner error reporting, run files in the right order, allow timeout to be specified on the command line