update lua support

add test
update swig definition

Signed-off-by: Hiroshi Miura <miurahr@linux.com>