Errors and the assessment of cognitive development