are tests necessary for this function?