added tests for the fix in commit 2297eed09.