Simplify warning test