Repaired broken TextBlockHash.
Added some unit tests