1) Added a new type testing function