DRY'd up file content tests, added check for contentLength
supporting last modified header