(tests) Add a new warning test: variable unused