[Event view] Create function that test pattern of each middleware.