moved tests to a separate file