Added tests

Hello,

I made a fork to add some tests, [travis](https://travis-ci.org/) also added, which is running when it has push on the master branch.
Then, you authorize and connects your repository in travis too ;)