fix issue with knuth generation and unit test
more testing