add some unit tests for swig templating