moved the test to proper method