Fixed the test errors. test function got nested.