A/B testing middleware for connect