added new test function