add test integration for flex array