Made the test function sleep for 10 seconds