Work around an apparent clang bug

    * tests were previously reported to fail with -O2 optimization