Add tests and Travis configuration

Currently failing, but that's another issue...