[offline][managed] added test for client wins policy in sync handler and...

... fixed test for store error replay