Contextlog implementation

don't use `assertEqual`