I've never been a night class person because I know how my body works and staying awake all through the night prior to an exam is not something I'll be willing to try😄.
You actually have amazing friends who were truly worried for you. Your story remind me of a friend of mine who studied in a different institution. In his case, his friends who all slept in the same room him, woke up, prepared and went for exams without waking him up. It was indeed a hilarious but serious situation.