Added unregister test.