Added test script and sub-functions
Second use of travis