Update .gitignore
Added test scripts
Fixed missing variable declaration