fix up self-test a bit

cleaner leak reports, fix some test version numbers, fix a error in a
self-test