Modify test function