Added tests for URL shortening.

    * Added tests and build using travis.