Fix lock file tests