refactor test harness a little - now predicts and compares output automagically
add some more tests