adjust spec test to cover case of complex qualified username(hostname)