Fix tests after switching to pkg_resources