test: add test to ensure that we don't override configs on invalid yaml

It already works as expected, but this is a good way of protecting from
future changes in goyaml.