Added function and basic test for get-type by name