Fixed bug so that tests can run in source directory,