have git ignore .swp files
fixed typo in test code