Tests for referential equality