state: add test for block devices