Create middlewareSpec.js