Fix tests for deferred returned from getRegisteredUsers
Use to right teardown method (for proper context)