fixes clang++ warnings in unit tests