CA-147671: Write unit tests for blktap, following CA-145685

Even though CA-145685 has been fixed, there is currently no unit tests to cover the changes introduced to blktap (see https://github.com/xapi-project/blktap/pull/133).
This pull request aims at covering these changes with unit tests.