Adds a timeout for qunit tests

After the timeout, the tests will fail, prevents Travis from hanging
indefinitely.