added a deadlock test