Update tests and move example to examples/basic