Fix tests on GCC