test for react equality