move tests to test.t