[TASK] Configure Travis for better build performance

* set sudo: false to allow usage of their new container-based infrastructure
* enable bundler caching
Merge pull request #1524 from braingourmets/task/travis-performance

[TASK] Configure Travis for better build performance
Remove duplicate code

Adding tests for text utils