fix service class, add facts for travis

I can't manage to make travis green again. The last error is this:

Failure/Error: (content.split("\n") & expected_lines).should =~ expected_lines
NoMethodError: private method `split' called for nil:NilClass