test(component): add working component tests

Added fallback function to get IP of running host
Added abstract function for running service level ping test
Removed debug print statements

working perfectly on Development Host . need to test on jenkins machine