Changed the test script to run the tests once and added an autotest script to watch for changes and run when appropriate.