added test for invalid base64 encoding