Bugfixes in guestManagementImpl.
Added some new test cases and reworked mocking.