fixes specs, adds env vars required for tests