MDL-40987, adding more unittest to repaginate and fixing the bug
MDL-43089 refactor maxmark ajax update code

* don't display icon on form when editing grade
* removed unused code
* refactor title and markedoutof to maxmark