Add tests for GPIO methods