revise test_scope