Add unit-tests for not treating text as codes; added count of total records correctly coded to do_validation()