Add test for timeouts.