Add unit tests for pkg/itemblock
