Here is the sentence again:
The blank space between caffeine and even makes a fused sentence. At this spot, there are two complete sentences joined with no punctuation, causing a major error. He needs to discover caffeine is the main clause of the first sentence. When he has a test, his head hits the desk ... begins the next complete sentence.
To fix this problem, you could put a period after caffeine and capitalize the E that begins even.