Initial work on backend test harness. Should be basically functional and mainly needs the tests writing.