Fixing the indefinite wait in testcase.
Merge pull request #104 from NiteshKant/master

Fixing the indefinite wait in testcase.