Ignore order of commands in test

The order is not deterministic. I only noticed this on Travis CI running CPython 3.3.