Merge pull request #48 from bohnje/master

Unit tests now use thier own temp db, formating fixes in test
hopefully fix issue where log was having permision issue