Remove unused variables from external.test.cpp.tmpl

My compiler is very picky.