fix tests with array