test in_context of set_session matcher in a better way