Factorizing some SASIAE-specific test helper functions. Updating root .gitignore file.