unittests for Jsonbody/FileBody and minor fix

JsonBody
if anyone has any idea how to implement code coverage for the last bit that would be great. The assigment the `$errorMsg` differs on php version due to `function_exists('json_last_error_msg')`

FileBody
no code coverage for truthy branch of (@readfile(->path) === FALSE).