updated testRegisterAction