fix another kast regression and add test

:/ Added another regression test because apparently because of the nasty weird code we have in krun (my fault, sorry!), we have no kast coverage at all. Whoops!

I'll add some more tests tomorrow just to be on the safe side, but this should unblock the regression, if we're lucky.