DBAL-807 [DBAL-807] - Added failing test reproduces a problem.

Added failing test reproduces problem, described in ticket http://www.doctrine-project.org/jira/browse/DBAL-807