Online testing system for courses