Fixing renew of ksync db entry with a new oper db entry.

Adding Test case for the same.