Test setModels for post middleware