Fix failing unit test.

This test consistently gives a *slightly* different result on Travis CI.
I don't think it's worth worrying about, so long as we have consistent
behaviour on the same machine.