I agree with Tim that, in the real world, they are both correct and show emphasis. However, in an exam, I expect that they want the first version. 'Yesterday' is an 'adverbial of time', meaning that it should generally go at the end. Here is how I teach adverbials in my classes:
These generally go before the word that they modify:
Adverbials of Frequency
Adverbials of Degree
And these go after the clause that they relate to:
Adverbials of Manner
Adverbials of Location
Adverbials of Time
However there are many exceptions! I hope that helps :)