There are several unused variable warnings (which are treated as error) which pop up in unittests on clang-6. Fix these.