Not sure I understand the question. The test here is to make sure that all middleware specified in configuration is indeed registered and added to the stack. The location of said stack changed between express 3.x and 4, thus the change here.