Added tests and travis configuration.