pragma and a bugfix
remove test code, test for TypeError