[TEST] Add test for _score and doc[] access in Groovy scripts