Make all tests that checks if something throws use the EXPECT_THROWS macro.