Replace variable arrays in tests with VARIABLE_ARRAY