Malloc testing added to full test code