test with timeout