Fixing tests and adding enabling travis-ci.