Added travis ci and fixes test script