[#6] Add middleware specs.