optimizely: port tests to new api