fixed test with timeout