Implemented ShouldRenderFile

Please review.
Not sure what you mean by test pollution in this case?