add spec for TypeError