base64 test codes improvement