Modelling Human Cognition in Intelligence Tests