Add some tests for os_update_readonly_flag

There is no test for os_update_readonly_flag api,
so add some for it.

Change-Id: Ice9a6ffea47dbaa492067f746edddcfbfc4eac4a
3 files changed