Improved test coverage.

I extended the tests to check for the negative case of checking the content type for all the file methods like we discussed. I also 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 or not - I can always extend them if you want.