improve gpio test case to also check hardware level