[travis] add testO2 test, and use more --optimize for faster tests