[PATCH v2 2/2] test: gpio: Add tests for the managed API