Passing assignment id instead of question id
Mocking required session variables (auth and request.assignment)
Accumulating grade
Forming LTI grade response XML (straigtforward, using sprintf)
Stubbed response send and grade cleanup
Fixed error on page 3
Implemented sending grades to LMS
Removed noop try-catch block