Dear [teacher],
This is [your first and last name] from your [___] period class. I just wanted to let you know that I haven't been feeling too well. For this reason, I will be absent from class tomorrow. I am aware of the fact that we have a test, but I will make up for it when I am feeling better. Thank you for understanding!
Sincerely,
[your first and last name]