add test generated files to .gitignore
refactor IR tests