improve messages of unit tests

as requested in #882.

@tfoote @wjwwood @jack-oquin Please review and comment if the messages are now sufficient.