Extend and fix meta_context_term_test_factory