Added R2P middleware test