make test slightly more robust