added creation of tos to tos_test.js for Travis