test service with dependency