Added test case for issue #1126
Fixed #1126
merged branch tucksaun/fix-issue-1126 (PR #1146)

This PR was merged into the master branch.

Discussion
----------

Fix issue #1126

@fabpot Is this way of adding the test case is ok for you?

Commits
-------

2430431 Fixed #1126
4ce9cbf Added test case for issue #1126
moved a test to the right place (refs #1146)