Fixed bugs where tests wouldn't run if not having if setuptools wasn't available or pytest > 2.3 was available.