Add timeout for testcases.