Adding tests and Travis CI conf