Add spec to cover incompatible encoding cases and correct spec setup.

The names used previous in the spec didn't match the actual behaviour,
so I addressed that as well.

See #358