Adding spec for invalid files