fix testcases broken by stacktrace work