Adding spec tests for update hook template