fixed a bogus test failure.
added a minor optimization in recv_frame. thanks yurnerola for the catch.