complete the creation of customizable functions.
added a test.sql.

Signed-off-by: aperi2007 <aperi2007@gmail.com>