Making regression test for #798 more friendly for non-C++11 compilers