criteria query tests and read value by its type in ReflectiveExtractor