Moved tests to pytypes.test