Set up the ability to fail tests on warnings.