add test to show TypeError can occur