Add test cases for block_device

There is no test for function new_format_is_swap and
new_format_is_ephemeral in block_device, this patch add test
cases for the 2 functions.

Change-Id: I86abafca5cb48e92574aec95d5e8c914efef2a45
Merge "Add test cases for block_device"