testing single cache updating semaphore