fix sync test : all versions synchronized
clean
add queryHistory method