remove unnecessary require base64 and add some specs