data size depends on a frametype now
added test protocol description
updated testcase
fixed few serious bugs (thanks, UnitTests!)