Added Vim scratch files into .gitignore.
Added tests for the metadata.