Add in test for loading external middleware