hearing testimony is for deciding the outcome of a trial