change b64 implem step1, fix test