Yes, there are still some problems with resolving those paths. The phpinfo was a great help, and hopefully from that I'll be able to write something that checks all those variables for the correct path.
You can remove the test.php for security now if you like. Not that big a risk, but it's a lot of information.