DATAMONGO-957 - Add support for query modifiers.

Added tests to verify proper invocation of template methods