Rewrite binary expression tests.