[web/test] don't depend on iteration order on a set
Fixes test under python -R ('pending_insert' in session data is a set,
so we can't rely on any particular ordering). Related to #4959402.
Schema of the data
------------------
First take a look at the data schema_ then try to remember that you are browsing
through a heap of data by applying stylesheets to the results of queries. This
site is not a content management system with items placed in folders. It is an
interface to a database which applies a view to retreived data.
.. _schema: schema