Adding junit test cases for service classes.