Migrate tests.
Added examples to README.