Added ManagementConsole API and some missing tests.

you need to use ``json_decode(..., true)``, otherwise ``$expectedArray`` is not an array but an object