aded test_func