Improve two tests by using actual operators.