Added more logging to management failover test, since it deletes some of the tasks
Added the ability of the mock agent to detect wrong lifecycle of service instance