added UnitTest for Array's allocator usages