add unit test for user service authenticate