added tests to user service