Test with timeout