Merge "Add test api to check if mode change is supported" into main