Add a spec to reproduce #37

This replaces the corresponding spec in bugs_spec for issue 24.