Fix embarassing typo bug in ReadFrameHeader. Thanks to Qi Zhao for the find. Added new tests as penance.