[PATCH v3 7/7] add tests for all synchronisation routines