Make timeout configurable so that tests finish more quickly