The search token validation test only cleared KAGI_TOKEN from the environment but still loaded the user config file, which could supply the token and cause the test to pass incorrectly. Pass --config=/nonexistent/path so loadConfig returns an empty object. Also includes search command improvements: markdown/json format output and --format flag.