Some unit tests, and updated gitignore