Add example.
Fix tests.