locks in test