add test for code swig ext