Added verifyType() and its test codes, added verifyCheckSum() and its te...

...st codes, updated tlvReceiveFSM() and its test codes, modified some the previous test codes to make it shorter or simplify, added ErrorLine enum in SerialInterrupt.h