implement length-prefix and write two tests for it.