test simple query and subresource get