Close code are speced on 07 and not 05
Proper handling of encoded frame and update tests