test: add test which ignores exceptions in a excepthook