added timeout to test.js