Added unit tests for NGram