Fixed the test that registers a new account.
Added state to be saved in account registration.