AI Through the Human Lens: Investigating Cognitive Theories in Machine Psychology