Validated helper class and tests.