Added tests and TravisCI settings