Fix the failing py26 tests on jenkins

While all our tests were passing on our dev machines, the python 2.6
tests were failing in the Stackforge Jenkins environment.

The reason seems to boil down to database queries returning items in a
different order when no explicit ordering was specified. Our tests were
relying on one ordering which coused them to fail.

This fixes the two failing tests we had, but there may be more out
there, passing by a happy coincidence.

Change-Id: I444394a7e73677313ff749525c978f6954fe4509
Signed-off-by: Tomas Sedovic <tsedovic@redhat.com>