Enhanced lua tests