make pip freeze test more flexible