fix root should be rdonly
tests add root readonly test
Merge pull request #355 from xiangli-cmu/root_readonly

WIP fix root should be rdonly