Add function library config component
Fixed unit tests