Fix test failure caused by base64 error being different between python versions