implement test for GitHub Issue #6