samples: moved api samples from test/simpleton