test func macro