Use some more informative asserts in inprocess kernel tests

Prompted by gh-6552 (but doesn't fix it)
Rats, left a debugging change in. One minute while I force push...