added test for nested timeout