Add tests, fix code so tests pass. Should now deal with configured
values which have truthy/falsey values including nil!