moved tests to test file