test code for setting GPIO config