Corrected wrong ordering of result checks.