Refactord the unit tests. Refactored the object_tools.validate_value meethod.