improve GetIpAddr and add tests
add Makefile.am for test dir
improve ruby code
improve tests
Merge pull request #5 from gabi2/master

improve GetIpAddr and add tests