Write functional test for getCurrentRegistration with new auth code.