Added test case for updatedOn hooks.
And fixed updatedOn hook.