Add unit tests.
Add .gitignore.