refactor arraypass tests