Fixed issue with test cleanup handling.
Fixed issue with test cleanup handling.

Change-Id: Ibb22230c83406084ebf30cf9f7bbeaaefab32db3
Reviewed-on: http://review.couchbase.org/c/couchnode/+/157891
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>
Reviewed-by: Sergey Avseyev

couchbase/couchnode,brett19/couchnode,brett19/couchnode,couchbase/couchnode,brett19/couchnode,couchbase/couchnode,couchbase/couchnode