add test code for block array