add a test to ensure that shared_ptr behaves like we want it to