Add a force_timeout function to tests.