add gitignore and test file