Can we also have a test for the timeout?

Have another test function that constructs a server that just sleeps for 10 seconds and see if the request will time out.