Add integration test of timeout