Add test script for automated testing on travis-ci