adding Lua testing to test.cpp