Adding the middleware definition for the hfs tests