Test client sets wrong content type if request doesn't specify content type, closes #988