Check for instruction order using expected_instruction variable