Added a few test for ManagedPtr and flesh out a bit more of its functionality.