test gpio control functionality