Added test case to issue #2384.
Merge pull request #491 from kacfengine/issue-2384-tc

Added test case to issue #2384.