Simplify unnecessary tests.