fix running tests when pypi installed