add timeout for long running tests

@smathieu