Fix deprecated dynamic property in legacy lib/ Mock and check other places
Fix deprecated dynamic property in legacy lib/ Mock and check other places