Better diagnostics for convention tests

Issue #363.