SendFile: test sendHeaders with dependency injection.