Add deregister tests