Move README examples into tests.