Added tests and travis config

Added tests and travis config

Tests have a 100% coverage

On https://travis-ci.org/ you can login with your github account and enable automatic testing of this project.