Use proper size for updating buffer
Have all flags defined in tests
More framer and framer test bugfixes