Optimize travis tests