more unit tests for registerNewUser, verify call counts