Added unit test for ifscanner, fix suspension, when removing protocol without launching, fix memory leak when removing protocol, various fixing