function to test