test for user refactored