fixed bug, added test
Merge pull request #7 from verticalbrands/logging-bug-fix

fixed bug, added test