moved the tests to state