[PATCH 1/7] selftests: gpio: rework and simplify test implementation