Unit tests for Volume attach & detach + bug fixes

- Added unit tests for Nova volume attach, detach and show details. 

- Also made minor bug fixes in the code