MDL-31830 course management: added unit test for the management helper