fixed issue in SemamphoreTest