Optimized tests, added *.iml and target/* to gitignore