add Online example in docs
fix test in travis