Make a few tests optimization-proof.  These tests were failing under -O3 because the optimizer was eliminating the call to new.