fix assign test on empty arrays