tests fixed and refined fn prototypes