Moved memory management tests back into the shared examples.