Add .gitignore and tests.