more registerNewUser unit tests to cover error conditions