MDL-38700 course: add tests for moveto_module()

* Test visibility when moving around hidden sections
* Test for visiblity changes when moving around in the same sections.
MDL-38700 course: only change visibility if a module moves to a different section