fixes bug 982742 - fix tests from regression
Merge pull request #1950 from peterbe/bug-982742-fix-tests-from-regression

fixes bug 982742 - fix tests from regression