fixed equality check in complex binary tests