test: add some utility functions to read and write sectors

Signed-off-by: David Scott <dave.scott@citrix.com>
test: flesh out write then read test

This test currently fails because the /dev/mapper/ device doesn't exist

Signed-off-by: David Scott <dave.scott@citrix.com>