compare arrays with equalTo