adding spec for document object
Story 46080467: removed nested array issue and refactored method to model, single count for population samples