adding tests for service wrapper