unittest: better output of stack traces
const nits