Using the exception message to influence control flow is fragile. Any reason not to introduce a new exception type and use `catch` blocks as they're intended? No strong feelings since it's just test code, however.