The best word to fill in the blank is "However."
The completed sentence would read:
"We rushed to school thinking that the test was going to start at nine o'clock. However, it was not supposed to start until ten o'clock."
This choice indicates a contrast between the expectation and the reality.