Added get_extension and related changes.
Introduced get_extension and version changes.
Introduced tests for get_extension and related.