fixes unit test; unregister() no longer throws exception