Added unit tests for ServerProperties

Fixed run time error with getHttpPort and changed getUdpPort tpo check for
invalid input