Disconnected From Server

I just downloaded the Vanilla client for WoW and started it up. I try to log in and it says connecting to server connected handshaking disconnected. I think the issue is the realm is set to test but I dont know how to change it Nostalrius. Pls help 
