moved the testing to a separate file