fix tests for admin queries