Added lua test and lua interface