Merge "Update flag value checks in IME tests" into main