tests: add fn test