fixed error in base64 test with malloc