Created network failure tests.
Use individual rather than batch transactions in tests.
Fixes.
Updated history.
Merge branch 'master' into tests
Added random network failure simulation to sync API.
Fixes to make network error simulation work.