test deadlocks fixed