use try/catch
update test script
introduce Travis CI