Add test for TypeError on encountering bad units; clarify exception text