Fixes random failure (database may not return changes in the order expected in the test).
Authored by: jplang 2011-01-09
Parent: [r4673]
Child: [r4675]