Add test hooks to .travis.yml