If you want a test area with the same contents, yes, that would be the way to do it. Do not replace wp-config with the one from your backup though as that would make the test area use the same database as your main site.
This will not copy any posts over however, as posts would be located in...