Merge changes I5b812ccf,I54b24397 into main

* changes:
  VolRef: add flags and permission tests
  VolRef: add initial UT to cover volume APIs