add test cases
merge base64 to algorithm