Test strcture (with query)