tests: add missing variable declaration