Unit tests for equivalence