failing tests added. free() calls inserted