update testing to work both locally and with Travis CI