tests for exam logic