Fixing test run error

Also removed vim swap file and added to gitignore
Added basic tests for file read