Update tests

Fixes tests & adds travis CI config.