Add more unit tests.
Add toc to README.