make test idempotent
Merge pull request #189 from 28msec/idempotent

Make test suite idempotent