Implemented the test_func again