Tony, we should really just do a 1 hour premier support ticket so I can show you how to do it. It is hard to follow and hard to explain when we work through the forum.
When I look in your gateways.php file, the test credentials are the same as the live. They should be different credentials. It looks like you don't have your correct sandbox credentials in there.