Fix tests on older compilers