Rewrite testing statements to be more concise.