add travis env variable and fix tests accordingly