test registering