fixed and tested object has_extension