Add unit tests for query likelihood and perplexity.