simple test for synchronized