Added thread and mutex tests