test cases for timeout and request exception