service layer under unit testing and implementation