Implemented filter query support.
Implemented tests for filterQuery implementation.