Adding tests and updating .gitignore