added tests
cleaned up tests and used file linking