Add tests. Adjust .gitignore.