small changes to timeout test in tests.js