TST: better assertion messages on test failures

CLN: pep8
Merge pull request #4430 from jreback/testing

TST: better assertion messages on test failures (GH4397)