Add arrayAssign method, update tests