created new test function