I did the normal drugs back in the college days in the 70's and I will tell you directly, that using uppers or speed to try and stay up to study only makes you a lot worst taking that test the next day.
The best thing to do, go to bed early, get up have a good breakfeast and go take the test rested. At this point you either know it or you don't.
The "magic" pill will only start a very bad habit for the future.

