Started writing unit test for registering/unregistering endpoints