added test for timeout feature