Added tests (with errors) and .gitignore improved