Fixes bug in unit test.

The default configuration options were not valid, so every unit test was not
testing properly each case.

A validation unit test was added to ensure that the defaults is valid.