Add specs and fix when using nlog configuration api. Fixes #5