Added local content self-update-hook and unit tests