More GpioMan tests and fixed some problems in GpioMan.