fixed and tested object has_extension
Merge pull request #3484 from dnadesign/object_has_extension_fix

fixed and tested object has_extension