middleware scenarios should check object equality