Add shared_from_raw tests.
Fix shared_from_raw_test4 failures.