added tests for base64, fixed error