Equality check fixed
Tests for equals