[AW] {refactoring} Improved test for registering user.