Removed duplication in binary operations tests.