Refactoring test set ppl computation for deterministic LMs