People typically don't use "in the test" and stick to "on the test" instead. For example, "I got a 95 on the test," sounds more natural than, "I got a 95 in the test." The same goes for discussing material you need to know. For example, people typically use, "was the structure of DNA on the test?" instead of, "was the structure of DNA in the test?"