fixed test case for synchonized