tdd logM
tdd lockM add tests
tdd lockM fix tests