Refactored code a little and added test for parsing volume binds JSON