Issue #158 - add assertions for runtime config to unit test

Signed-off-by: Joshua Paling <joshua.paling@gmail.com>
Merge pull request #184 from joshuapaling/issue-158-save-twice-fatal-error

Issue #158 / #183 - add assertions for runtime config to unit test