created test function