[Test] Changes to remove exceptions in the setter tests.