implemented ownership for CbArray
updated array unit-test