simplified the test