DBAL-774 - added failing test for parsing order of joins

I had finaly some time to investigate the problem a bit more, and the problem is the way doctrine/dbal >= 2.4 handles the parsing of joins

The expected result is the way doctrine/dbal 2.3 handles the joins, which is not quite the way i expect that the query would be outputted but it is correct for execution.

I will try to make some time and come with a fix, but i'm not familiar with the logic on parsing joins and why it changed in doctrine/dbal >= 2.4

Test is related to http://www.doctrine-project.org/jira/browse/DBAL-774