Added nose tests for leaner.py and ngram.py