add tests for sigtrap handling, currently broken