Unit test of wrapper.