CFY-1215: Add unit tests

Add nominal unit tests for volumes operations.
Fix issues discovered by unit tests.