finished up test mode

students can now take tests and their marks are recorded and stored in
the datastore