Added test for refequals.