Adds locking tests