add withArgs to unit tests for registerNewUser