Adding unit test for defaulting header to application/json