Bug 922558: unit tests for PredicateContext, and resulting fixes. data.documentType remain unpopulated