fixed test_compare to compare the correct two rows