Add LockDao unit test.