Added deadlock test, changed mutex test