add unit testing for user