Refactored UserEntityTest