Snapshot deploy issue...not finding right database

I am trying to ghost a site that is giving problems on my test server. When I copy the live site using Snapshot and then deploy it on my test server and then try to make test sales to force a repeat of the error, the sales appear live on the live site rather than on the test server and become real sales, rather than test sandbox sales.

All attempts to get the test site to point to the test site's databases instead of those of the live site have failed.