add 401 error; add query auth for as/domain/ns;add query test