Removed magic numbers on time.sleep in the tests