[Harness, fake XMLHttpRequest] more defensive regexp to match api/search queries
[Tests] get rid of extra spaces when passing predicate "itemsPerPage" into the query