Changed the tests for hostname plugin

Changed the tests for setting the hostname to verify that the plugin
executes and the name is truncated if the size is larger than
NETBIOS_HOST_NAME_MAX_LEN.