Adding spec to check for bad files