Add tests and documentation for base64 format