cpp-test translate to lua