test: [gpio] constructor type