Add travis config and modify tests so they work on travis.
Merge pull request #15 from Kami/add_travis_config

Add travis config and modify tests so they work on Travis CI