adds a spec for validation of length