Added test to address warning issue when calling without query