Fix unit test for previous comit(Improvement for lock directory).