Merge "Add a test to verify that flags in resource paths must be readonly" into main