added callable msg to assert_ and use it here.
it could be useful in more assert_* functions, but when I benchmarked the tests this one was the only one where this is an issue.