add test case for something like use case described in issue #6