optimizely: port tests to new api
Merge pull request #263 from segmentio/test/optimizely

optimizely: port tests to new api