Add unittest for extension