The thing is, modal verbs express modality, and usually if you want to express modality in the past you have to use a model verb + perfecc form, thus you have:
Gabriel, you should study for the test. (my teacher telling me to study a week before the test) Gabriel, you should have studied for the test. (my teacher talking to me after I took the test and failed it)