Fix tests after removing automatic middleware inclusion