Improve equals method in QueryValidator
Add query test cases for filtering
Add query test cases for sorting
fix entity date when initializing the datas