What @Raphael suggested about using the real domain name (for tests) and adjust your computer’s hosts file to access it, is indeed correct. One other way is to use Fiddler as a proxy and adjust Fiddler’s hosts. Configure one browser to use Fiddler proxy to connect to test site and use another browser to connect to Live site.
More info about that method, here.