test if q param exists