fixing test cases for ksync running in sync mode.
adding test-case to simulate failure for get nh from DB state