removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway
simplified the reload config code a little, moved the tests into their own file, improved coverage