Fix in test case due to core changes of making variable protected