Update test to reflect changes

When an HTTP request is sent to a Foreman server with a content-type of
text/plain, an HTTP 415 (unsupported media type) response is received. This is
correct behaviour: only text/json messages are supported by Foreman. Update the
test suite to reflect this change.
Merge pull request #1143 from Ichimonji10/jenkins

Update test to reflect changes