fixes unit test on traps