Added test script to gitignore
Refactoring