Clean up test case

Fix memory leak in raw_ptr.
Create objects test
Fix invalid magicNumber in move assignment