Make test more robust.