This ensures that the warnings generated are caught as exceptions, failing test cases