removed tests of middleware using old config