added test for registration failure case