Reducing duplicate test code
Updating .gitignore