Add tests for TH\Lock\FileLock

close #1