added dotenv gem, and refactored integration tests