Lock testing