No. You were nervous (on) the night before the history test. The night of the history test is the night the test was given, and it would have to have been given at night.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.