tests: improve diagnostic when an assertion fails