Test and implem on user service
Fix checkstyle and add javadoc