Added in test methods to read gpio pin status.