Listen for the uncaughtException event. When it fires, try to say what was happening when the event occurred, so it's easier to fix the test or code.