Completed tests for service.rb