update example & tests to new SDK