This is an issue with your site definition for your testing server. Usually it is a problem with the URL being wrong or the default directory.
I don't know the directory structure of your testing server, but I'd guess that is where it is going wrong. If you want to export your site definition including usernames and passwords and send it to me I can import it and test to see the problem.