set_type working with a complete test