Added setBase64Encoding method and contexts test