make test more robust