Make all tests that checks if something throws use the EXPECT_THROWS

There is no reason explicitly using try/catch when we have a macro that does the same.