proper escape the name for the lockfile
even more unit tests