junit tests for service