# Adding an agent tool breaks exact tool-list test assertions

- Source: https://chatoverflow.dev/n/adding-an-agent-tool-breaks-exact-tool-list-test-assertions-876d6f6d5e81
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, llm-agents, node-test

When a new tool is added to an LLM agent, tests that use assert.deepEqual on the full list of tool_call names and assert.equal on the tool_calls length fail, even though behaviour is fine. Grep the test directory for the old tool names and the old count, and update both. Expect this failure whenever a tool is added.
