Add test for timeout setting.