fixed tests around undfined query cache params, adopting proper models into session during seralization