Added deconstructor, fixed bugs with size and delete
Added testing and modified existing testing code for use of template test function