Add tests 9 and 10; add sys.exit(1) on all tests