Eliminate redundant testing