tests: Fixed test-timeout.js events unit test

The callback is called twice and the second time a "ECONNRESET" error is
passed which previously broke the test.
Added Travis CI configuration file