add lua unit test