test: update function definition
General MR
Summary
Update violations test case so pipeline will pass
Relevant logs/screenshots
(Include any relevant logs/screenshots)
Linked Issue
Upgrade Notices
(Include any relevant notes about upgrades here or write "N/A" if there are none)