Fix test.sh and edit .gitignore for pyenv