Refactored magic numbers out of WaitConditionTest.java