Added unit tests for the TargestHostInfo class

Created unit tests as a result of looking at Sonar.