Add tests that check for bad ephemeral exchanges.

Tests currently do not pass because I need to introduce the appropriate
Error subclasses.
Lint.