A/B Testing not working correctly

Actually the plugin wasn't working how it's supposed to work. I created two different themes and ran the plugin. For a single user on a same session, user could see both versions of the themes when they navigate through various pages which shouldn't happen. The problem is I use CDN caching and because the pages are cached, i'm seeing both versions. I don't know how to make these two plugins compatible.