The test_direction_readback fails, because gpio_get_direction wasn't properly null terminating the direction string