to test the function