trace exceptions in tests