Issue #777 (Regression test and fix proposal)

This test fails, but will pass, as soon as issue 777 gets fixed.
I'm not sure if we want to merge it already, but I guess a failing test will remind us of this issue.
http://hub.qgis.org/issues/777