tests: depend on lint on test target and remove unused vars