Add unit-tests for not treating text as codes; added count of total reco...

...rds correctly coded to do_validation()