Tests for PR #23 (bug 979484)