Fixing tests: errors for clang compilation