[opwig] fixed an issue in wrapper generator bootstrap and unit test