Moved wordpress dashboard still pointing to testing server

The URLs are built from WordPress Address and Site Address in Settings > General. They are typically stored in database in home and siteurl options, but might also be overridden with configuration constants.

Codex has documentation on Moving WordPress that covers common scenarios.

Note that you might want to do a global replacement on database, since content might have persistently stored links to old URL and so on. Be aware that you need to use serialize-aware search/replace tool, not merely run text replace. WP CLI can do it.