avr: added auto test mode. wait for idle before doing a pb check_line
avr: more test clean up
avr: added max rate to stats
avr: pb can send magic packets