declare lock file & test