added test for array serialization