Add test cases for base64 object encoding.