Updated dependencies and language level
Refactored test method to eliminate duplication of field name root