Updated unit tests to include new feature verification.

Checks to see that retainInvalid sets the isValid boolean and verifies
that the value stays as it was in the field.

Checks to see that explicitMode does what expected when set to true and
returns to normal after being set to false.