Unit tested record functions, needed to allocated memory for the char*.