Add automated tests with travis integration

Testing with #737