lua: add test

Closes #26646.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>