Updated tests and added .gitignore rules