test using lock file instead