complete unit tests for user service authenticate