Reworked RestManager tests into true unit tests utilising mocks instead of real objects.