compare with expected result