Fix unittests

Reintroduce the unittests for lib block devices, in preparartion of PR #12.