Fix multiple calls to testComplete

Signed-off-by: nscavell <nick.scavelli@gmail.com>
Merge pull request #869 from nscavell/master

Fix multiple calls to testComplete