test: enable testifylint and fix lint issues

This MR refactors tests using testifylint.

Most changes were made automatically by running: golangci-lint run --enable-only testifylint --fix ./...

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading