Unit tests for evaluator.rb + a few fixes

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.