Unit tests for Volume attach & detach + bug fixes