changed the content-type return again and added a unit test.