add stackTracelimit configurable
add test case