Tivial update to support 'mode' when attaching volumes in the unit tests.

The volume mocking needs to support he passing of a mode when attaching
a volume.

Change-Id: Ib91a569d0e585b1cf772ff424e75570b960d1acc