Improved test coverage.

I extend the tests to check for the negative case of checking the content type for all the file methods. I also added extended the test cases.

Note that I did not extend the test coverage for the `ShouldRenderFile` method as that method will soon be deprecated. I am not sure if that is a good reason - I can always add some if you want.