Simplified initialization logic in tests.

* It was very quickly becoming unmaintainable.
Made a lot of progress on run_harness command.