removed not valid gitignore entries, fixed typo in test, moved if into one-liner