serialize test uses should type function