adding tests for register_endpoint