Evaluator unit tests

Implemented unit tests for Evaluator. Thanks to that two bugs were found
and fixed:
- querying for subdocument equality
- handling regexes
Implemented handle_all in the Evaluator.