Added tests for _NGrams_ and _NGramReferences_.