Make a CHECK_THROWS macro, which tests that we throw an exception.