wrote test for logic within UserImpl