Added .gitignore.
Added test coverage.