Testing the function