Fixed door close problem in testCaseRandom.