Add timeout when running the sim for tests.