Clean up messy test code
Add gitignore