Added test for issue #123
Merge pull request #380 from couchbase/feature/issue_123

Added test for issue #123