test function reference used as free val