test case for block