update AnalogInput feature to report only when pin state changed
add some tests for AnalogInput feature