Can you add one more test which does the following thing.

calls createRegistrationId
assigns registrationid to a  registration 
calls CreateOrUpdate registration method.