Adds Unit Tests

Renato, I added some unit tests to the project. Check if it is good enough.

To test it locally, just run `./test/tests.sh`.

And I added a support to travis-ci. To configure it, read http://docs.travis-ci.com/user/getting-started/