added comments to testgettype