Added functionality for query. Added unit tests for jsonSerializer deserializer, elasticQuery etc.