[bindings] add tests for swig versions 1.3.39 1.3.40