lytics: port tests to new api