bug with responses without content-type header; added tests