Adds sleep to test