Added test for record comparison (structural equivalence)