test for result comparison