Updated EQUAL implementation.
Updated EQUAL tests