fixed function types, registered functions
lua api test