querydirect on test to avoid prompt on sudo