Eliminate clang warnings in test code