Fixed failing wsTest (deregister device - test db issue)