Improve clarity of comments
Add an additional TypeError test case