Middle ware Testing