add context serde tests and deprecate backwards compatible methods