Fixed unit tests. It appears that '/nonexistent' can sometimes exist on Travis,
so using an odd directory name instead. Added *.gem to .gitignore file as well.