Added a test to ensure that objects pointer to from the heap from the stack are no freed.