Added tests for default middleware.
Added: tests for plugins middleware.