Add tests and .gitignore file