[Analyzer] Cleanup and improve tests for lockfile checkout options.