query model + test