Removed magic numbers on time.sleep in the test's