Measurement of cognitive abilities in senescent animals