Added unit tests, fixed problem where deleted tests were still run, add command line option for target directory.