How do I create a WP test site

How do I create a test site so that I can test plugins and themes?
Do I have it as a sub-domain of the main domain or as a completely separate site, but obviously one that is not publicly available. Also, should the test site also be based on the latest 2013 WP version to ensure 100% certainty that plugins, etc, will work on the real site.