Add Travis support and a unit test