Fix flakey test.

Was assuming the order of a non-ordered resultset
Merge pull request #133 from alphagov/fix_flakey_test

Fix flakey test.