Add test for idle timeout.