added method test to inheritance GPIO