Split off usage examples into test.rb and put in README.