Add trusted pattern + associated tests to sdk