Revert "middleware tests"

This reverts commit d91f90a24208effb1e10b67be4d5492c7b4ab82c.