Gitignore ignoring intellij files
More tests and fixes