Added tests and travis config.