added all tests in one function test