Added a testcase for add_extension