expect metadata to be a Buffer
1.2.1