Add unit test for LdaModel.query() and fix merge_query_stats() index bug.