Unit test

Add mock object to set ip address on request
Add test case on service, for getting ip address