Checks expected result.