moved the tests into a separate file