Refactor the buffer spec w/ shared examples