Fixing typo/bug in evaluateDocument(); added another test case

Fixing bug in evaluateDocument(); logging caught exception errors to
console to help testing/debug; Added test case to test and modified
'equality' of view and resultset to be set based... as long as they
contain the same document (irrelevant of the order), they are considered
equal