Add .gitignore
Get tests permissions right.