Add $expectedArrayParams to getQueryParams()