Sort list of tests by title.  Have buttons with appropriate classes when a test is in exam mode or not.
Capture the click event for the button to be sent to the server.