add test which compares synchronisation and atomic