Added tests for set_pin_mode