make test a bit more robust.