updateLiberties() implementation in core with unit test update