Added tests.
Updated README.md.