fixed issue in LockTest